const components = require.context('./comp', true, /[A-Z]\w+\.(vue|js)$/)

let resComponents = {}

components.keys().forEach(fileName => {
    const key = fileName.replace(/^\.\/(.*)\.\w+$/,"$1")
    const comp = components(fileName)
    resComponents[key] = comp.default
})

export default resComponents